package com.example.spring;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@EnableDiscoveryClient
@RestController
//@MapperScan("com.example.spring.dao")
public class ConsumeServer1Application {

	@RequestMapping("/consume-server1")
	public String consumeServer(){
		return "Hello consumeServer1";
	}

	public static void main(String[] args) {
		SpringApplication.run(ConsumeServer1Application.class, args);
	}
}
